<template>
  <div>
    <button @click="getMovieList">点击获取电影</button>
    <ul>
      <li v-for="item in movieList" :key="item.tvId">
        <h1>电影名称：{{ item.albumName }}</h1>
        <p>{{ item.description }}</p>
      </li>
    </ul>
  </div>
</template>

<script>
  import { mapActions, mapState } from "vuex";
  export default {
    name: "Movie",
    computed: {
      ...mapState("Movie", ["movieList"]),
      // ...mapState("count", ["count"]),
    },
    methods: {
      ...mapActions("Movie", ["getMovieList"]),
    },
  };
</script>

<style></style>
